import Axios from "axios";

const service = Axios.create({
    baseURL: '',
    timeout: 10000
})

service.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'

service.interceptors.request.use(config => {

    return config
}, error => {
    return Promise.reject(error)
})

service.interceptors.response.use(response => {

    return response.data
}, error => {
    return Promise.reject(error)
})

export default service